package org.salatec.tapestry4e;

import org.eclipse.wst.html.core.internal.encoding.HTMLDocumentCharsetDetector;
import org.eclipse.wst.html.core.internal.encoding.HTMLModelLoader;
import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector;
import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;
import org.eclipse.wst.sse.core.internal.ltk.modelhandler.AbstractModelHandler;
import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler;
import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;
import org.salatec.tapestry4e.text.TMLDocumentLoader;

public class ModelHandlerForTML extends AbstractModelHandler implements
		IModelHandler {

	static String AssociatedContentTypeID = "org.salatec.tapestry4e.tmlsource";
	private static String ModelHandlerID_TML = "org.salatec.tapestry4e.modelhandler";

	public ModelHandlerForTML() {
		super();

		setId(ModelHandlerID_TML);
		setAssociatedContentTypeId(AssociatedContentTypeID);
	}

	@Override
	public IDocumentCharsetDetector getEncodingDetector() {
		// TODO Auto-generated method stub
		return new HTMLDocumentCharsetDetector();
	}

	public IModelLoader getModelLoader() {

		return new HTMLModelLoader();

	}

	public IDocumentLoader getDocumentLoader() {
		return new TMLDocumentLoader();
	}

}
